package com.baomihua.demo.entiy

import com.baomihua.demo.enums.UserStatus
import com.baomidou.mybatisplus.annotations.TableLogic
import com.baomidou.mybatisplus.annotations.TableName
import java.util.*

/**
 * 用户实体
 * @author nieqiurong 2017/12/7.
 */
@TableName(value = "t_user")
open class User(var id: Long? = null, var userName: String? = null, var phone: String? = null, @TableLogic var status: UserStatus? = null, var createTime: Date? = null, var updateTime: Date? = null) {

    override fun toString(): String {
        return "User(id=$id, userName=$userName, phone=$phone, status=$status, createTime=$createTime, updateTime=$updateTime)"
    }


}